home *** CD-ROM | disk | FTP | other *** search
- on checkifacroloaded
- global theApp
- set theApp to getExtensionApp("PDF")
- put "Application name = " && theApp
- if word 1 of theApp = "Error:" then
- set acrobatloaded to "false"
- else
- set acrobatloaded to "true"
- end if
- if acrobatloaded = "true" then
- set FirstSlash to 0
- repeat with t = 1 to the number of chars in theApp
- if char t of theApp = "\" then
- set LastSlash to t
- end if
- end repeat
- set folderLoc to char 1 to LastSlash - 1 of theApp
- set Exename to char LastSlash + 1 to the number of chars in theApp of theApp
- repeat with t = 1 to 2000
- set fname to getNthFileNameInFolder(folderLoc, t)
- if fname = EMPTY then
- set acrobatloaded to "differentlocation"
- exit repeat
- end if
- if fname = Exename then
- set acrobatloaded to "true"
- exit repeat
- end if
- end repeat
- end if
- put "steve's code exename= " & Exename
- return acrobatloaded
- end
-